proof without induction of sum of cubes